#ifndef __COMM_H__
#define __COMM_H__

#ifdef __ANDROID__
	//#include <cutils/log.h>  // only in android source
	#include <android/log.h>  // only use in NDK
	#define LOG_TAG "TestQueue"
	#define LOGE(...) ((void)__android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__))
	#define LOGD(...) ((void)__android_log_print(ANDROID_LOG_DEBUG, LOG_TAG, __VA_ARGS__))
	#define LOGI(...) ((void)__android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__))
	#define LOGW(...) ((void)__android_log_print(ANDROID_LOG_WARN, LOG_TAG, __VA_ARGS__))
/*
	// in android source
	#define LOGE LOGE
	#define LOGD LOGD
	#define LOGI LOGI
	#define LOGW LOGW
*/
#else
	#define LOGE printf
	#define LOGD printf
	#define LOGI printf
	#define LOGW printf
#endif

#endif 